package com.rest.core.utils;

import org.apache.log4j.DailyRollingFileAppender;
import org.apache.log4j.Priority;

/**
 * log日志类
 * @ClassName: LogDailyRollingFileAppender
 * @Description: 
 * @author xuzw
 * @date 2015年8月27日 下午10:30:17
 */
public class LogDailyRollingFileAppender extends DailyRollingFileAppender {

    @Override
    public boolean isAsSevereAsThreshold(Priority priority) {
        // 只判断是否相等，而不判断优先级
        return this.getThreshold().equals(priority);
    }

}
